package com.xyht.sca_s.student_manage_system.modules.mailbox.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.modules.mailbox.entity.SmsMailbox;
import com.xyht.sca_s.student_manage_system.modules.mailbox.entity.dto.SmsReplyMailboxDto;
import com.xyht.sca_s.student_manage_system.modules.mailbox.entity.dto.SmsSendMailboxDto;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XYHT
 * @since 2022-12-26
 */
public interface SmsMailboxService extends IService<SmsMailbox> {
    ResponseResult addMailbox(SmsSendMailboxDto smsSendMailboxDto,String sender);
    ResponseResult selectMyAllMailbox(String sender,Integer pageSize,Integer pageNum);
    ResponseResult selectMailboxById(String id);
    ResponseResult selectAllOpenMailbox(String sender,Integer pageSize,Integer pageNum);
    ResponseResult selectAllMailbox(Integer pageSize,Integer pageNum);
    ResponseResult deleteMailboxById(SmsMailbox smsMailbox);
    ResponseResult addReplyMailbox(SmsReplyMailboxDto smsReplyMailboxDto);
    ResponseResult selectOpenMailbox(Integer pageSize,Integer pageNum,String title);
    ResponseResult selectMyMailbox(Integer pageSize,Integer pageNum,String title,String sender);

    ResponseResult switchIsOpen(SmsMailbox smsMailbox,String user_id);
}
